using System;
using System.Collections.Generic;
using System.Data;
using System.Data.Common;
using Gammar.Digger.Entity;
using Gammar.Digger.SystemFramework;
namespace Gammar.Digger.IDAL
{
	public interface IParent_Class
	{
		//C
        int Add(Parent_ClassEntity parent_class);
		
		int AddPartial(Parent_ClassEntity entity);

        //U
        int Update(Parent_ClassEntity parent_class);

        int Updatepartial(Parent_ClassEntity entity, string where);

		int UpdateByPClass_ID(Parent_ClassEntity parent_class);
		
        //D
        int Delete(string where);

        //R
        object GetCell(string cellName, string where);

        Parent_ClassEntity GetEntity(int primaryKeyId);

        DataTable GetTable(string where);

        SortList<Parent_ClassEntity> GetList(string strWhere);

        List<Parent_ClassEntity> GetPartial(string[] selectedFields,string where);
	}
}

